package org.goyo.main.domain.dao.system.impl;

import java.util.List;

import org.goyo.main.domain.dao.BaseDAO;
import org.goyo.main.domain.dao.system.ISysUserDepGroupDao;
import org.goyo.main.domain.entity.system.SysUserDepGroup;
import org.springframework.stereotype.Repository;

@Repository
public class SysUserDepGroupDaoImpl extends BaseDAO implements ISysUserDepGroupDao{

	@Override
	public List<SysUserDepGroup> findByUserId(String userId) {
		String hql = "from SysUserDepGroup where userId = ?";
		return this.findObjects(hql, null, new Object[]{userId});
	}

}
